const Koa = require('koa');
const app = new Koa();

app.use(async (ctx, next) => {
  ctx.body = 'hello world';
  await next();
});

app.listen(3000, () => {
  console.log('server is running at http://localhost:3000');
});